﻿using SortGuid.Tool.Comb;

namespace SortGuid.Tool
{
    public static class GuidEx
    {
        /// <summary>
        /// 生成数据库guid
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        public static Guid CreateGuid(this DbBaseType t)
        {
            if (t != DbBaseType.PostgreSql)
            {
                return Provider.Sql.Create();
            }

            return Provider.PostgreSql.Create();
        }
    }
}
